Replaced usage of connection with usage of branch in creation model.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>