Fix entityrepository compiler pass for public services