Refactor AuditableInterceptor to improve readibility.

Refactored changes that were merged in #587. 

Refactored for readability and to remove duplication in the code. 

Original ticket- https://tickets.openmrs.org/browse/TRUNK-3964