Moved the Func< stuff into a central static class

@srkirkland @anlai Still not sure if this is better or not, but if you guys like it feel free to merge this.