Code refactoring and readying for a long mode jump