Refactored ant rules to be more simple.