Senior x-men
The pirates wound up being irrelevant, but what if it had been someone else in the school during the attack? A community member, a child? What if Hope takes a toy from her and she gets upset? Or she's 10 months old, kids don't have to be rational about why they're upset.
It's not uncommon practice with younger Omegas. It's not taking it away, her powers are still there and the plan is to get them back in the child's control on the most reasonable timeline possible. It's more preventing her from hurting someone and becoming a target before she can control it or even understand that she's hurting them.
Other than that, isolation could maybe work, but has its own pretty significant problems.