Modularize quality checks