Move shared logic into separated methods
Move shared logic into separated methods

tsurai/cargo,rust-lang/cargo,achanda/cargo,vojtechkral/cargo,nipunn1313/cargo,eminence/cargo,eminence/cargo,rustyhorde/cargo,eminence/cargo,vojtechkral/cargo,tshepang/cargo,rust-lang/cargo,nipunn1313/cargo,vojtechkral/cargo,tshepang/cargo,rustyhorde/cargo,rustyhorde/cargo,rust-lang/cargo,achanda/cargo,tsurai/cargo,eminence/cargo,achanda/cargo,rustyhorde/cargo,tsurai/cargo,tsurai/cargo,tshepang/cargo,nipunn1313/cargo,achanda/cargo,vojtechkral/cargo,tsurai/cargo,nipunn1313/cargo,tshepang/cargo,rust-lang/cargo