Consolidate common bindings code