[testIssueSenderRedmine] Unify duplicated code