Refactor report message into a method