Abstract function.bind shim into separate module