Removes pageTypes from metadata