Refactoring for Sinatra modular app