Retractions onto series-parallel posets