Moves functions closer to where they are needed
Hacking around with quote types