Remove duplication from adding transition logic