Don't have Telegram yet? Try it now!
https://pupeno.com/2010/03/31/refactoring-consolidate-duplicate-conditional-fragments-in-java-python-and-ruby/
Refactoring: Consolidate Duplicate Conditional Fragments; in Java, Python and Ruby