Applied IoC principle to startup process.