Found/removed code duplication.