Refactor build gradle