A cone splitting theorem for Alexandrov spaces