Bunch of refactoring, don't use per-method expose in haxe