Clean code, factorize code