Why are we dumping the p function again?

I understand it needs to be refactored but why here?