Extract and simplify synchronization.