Remove unneeded selection commmand code.