todo
Delete unnecessary code. Move to function without solid writing process.

不要コード削除
処理をベタ書きせずに関数内へ