Moving command queue into dedicated (reusable) file - resp. creating object of that concept.