Your code is too long —

The sound of one hand clapping?

Don’t Repeat Yourself