Refactor for warnings.