Move handling of PRIV_ variables to separate source file before it
gets too complicated.