Refactor findCabal