Rule engine code refactoring encapsulate ifdef code

git-svn-id: svn://irodssvn.ucsd.edu/trunk@5390 ea137bd6-aa86-47b6-b90d-b101d9f19a90
One more file for r5390

git-svn-id: svn://irodssvn.ucsd.edu/trunk@5391 ea137bd6-aa86-47b6-b90d-b101d9f19a90