Aggregates small files separated as Mike Snitzer's advice
Good Capsulation by moving functions
Cleanup
Add unlikely to check_atomicity

I don't know whether it can happen.