Remove duplication in testing deployment