The following procedure removes a gear from a portal.