Improve model instead
Remove unused join
Prefetch "bad categories" to speed up the query