Abstracted out the metronome shape into an interface and class. The interface is surprisingly sparse but there is much room for improvement.