Extract extend/block/include commands from parse function