Extract creation of direction arrow to shared function