This pre-existing alter hook is moved into buildEntities(),
because that happened to be more convenient
and because it feels like generated custom elements should always be passed through an alter, also when called through another public function. (Since all the other public functions are new in 3.x, that's not a backward compatibility issue.)
This pre-existing alter hook is moved into buildEntities(),