Could you use the TYPES constant instead of repeating?