Move effect callback to the maxifill

If these functions no longer closure in variables they can become reusable singletons.
Just a comment, no need to change it in this patch.