Moved create_olaclient_callback for reusability