Refactor world inheritance to be called before creation and after deletion.