Always set restriction for replaced methods