Refactor generation of Android build links into a new function