am a fan of replacing duplicate code!