Refactor TypeUserDefined. Extract new class UserDefinedLayout