Russia is pulling its military away from northern Syria but it is maintaining two main bases after the toppling of President Bashar al-Assad.