Refactor getting models and entities