Refactor to log warnings collated during validation