After landing yours truly retracts the flaps to clean from Full and 3 at once as per training.
Surely, flap retraction is not done until clear of the runway. It prevents the gear being selected by mistake. I once had the "pleasure" of ferrying a slightly bent aeroplane following just that. The aircraft had bounced on landing, the FO selected the gear instead of the flap, and....