Any ref that doesn't stop time (and the game) to pull out a player is doing it wrong (and won't be aware of any advantages, or the game in the background, or the re-entry time of the penalised player, they also ensure professional fouling is a legitimate tactic).
30-second penalty: This penalty will follow verbal warnings or will be used to penalize players for a more serious first-time rule violation. When the referee observes an infraction, they will whistle, stop time and call for the offending player to exit the court. The timekeeper will declare when they can re-enter the game. The resulting game play will be 3 on 2 for a full 30 seconds unless the innocent team scores during the power play. At this time, the penalized player may re-enter the court.
Any ref that doesn't stop time (and the game) to pull out a player is doing it wrong (and won't be aware of any advantages, or the game in the background, or the re-entry time of the penalised player, they also ensure professional fouling is a legitimate tactic).