QualityUtils: cleaner and with better docs