Replace deprecated `Railties.engine`