Refactor logging roles using log4j2 markers.