I\'ve lately found myself in a situation where I could solve my problem but wasn\'t satisfied with the way the resulting code looked like. Here\'s the scenario: