Remove n+1 query.