Removes pageTypes from metadata.