refactor in ConfiguredType