Move code to abstract block.