Code smell -- duplicated logic.