Move re-usable code into ellipsis.sh