Refactor modelTo logic into lookupModelTo