Recovering actions from their orbit spaces