Move findBiggestComponent as a separated method