Removing types from metadata definitions