Phenotype control and elimination of variables in Boolean networks