move awkward field kind handling from template to Api.getFieldInfo