Example of rebinding a function during service initialization