Currently Seroval doesn't support serializing functions, so they have to be wrapped with class to allow seroval plugin lookup and appropriate serialization.
Once lxsmnsyc/seroval#51 is complete, we can switch back to using regular functions and remove the need to manually wrap function refs.