Move contents API module into services