Apply multi-project of gradle, Optimize code structure