Move pat source code up to a level.