Generalize model getter functions