Use `#initialize` instead of `#before_initialize` in engine