Reorganize code binding to service and don't initialize sandbox when it's not needed