Refactored RuleParameter

Removed some code duplication by using base class.