code loading optimization by splitting admin functions on a separate class