Make parameter rules static and fix validation of rule visibility