Move PHP from rules into hardcode