Allow to register services with static constructor