Cleaned up repetitive functions
Added getObject and getObjects to RuleService