Remove all the global functions which aren't controllers