Refactor: migrated common.coffee to class based services