refactor some codes
Merge pull request #23 from SmartPic/refactor/wantedly-coding-rule

リファクタリングしてみた