Clean code in config main