Code simplification for bindings