Refactor engine.bonus to engine.entity.bonus