Get rid of reflection during input layout creation.