Refactor getting model properties.