Rewrite modules to be able to combine BIFs with normal functions