Refactored instruction building in CPU