Move the Pattern Pcmd functions to their own header.