Move duplicate code into function

Conflicts:
	demo/bickley_jet/elliptic_hyperbolic_lcs.m
	demo/bickley_jet/elliptic_hyperbolic_lcs_details.m