Easy.

Create a new PL function where you select your current PL as Input 1 and the maintenance mode (Inverted) as Input 2.