remove some duplication [skip ci]