This helps factoring out a certain number of similar queries, and removing a few methods from `BaseModel`.
8a0151b4bc