Unofficial rule. LOL. McCarthy could have kicked them out at anytime when he was Speaker as those office spaces were not primary office Spaces for Pelosi and Hoyer. They were secondary spaces.
Where did you ever get that idea...