Loadbalancer refactoring