Rewrite the hard code.