Move creation of mapit_api client out of model.