Remove duplication in defining machine-specific routes/views