Can we refactor these three logging of maps into a method that takes an Map<Object,Object> and logs the entries?