simplify engine.rb

Just DRYing up engine.rb since we're getting complaints it is too complex from our dev tools