Moved rules manager to separate class (inline parser)