I thought about it but was not sure what would be the plocy about gotos. I do not like this code duplication solution either, it is a nightmare to maintain..
I'll change my proposal with the goto solution.