backend: clean up instruction formats, moving common definitions into base classes