Refactoring 與 rake

https://redmine.techbang.com/issues/12090