Moved code for data defined simple line symbolisation into its own functions