Adapte the code to a new version of Entityx.