Unify jump logic in one method