Abstracted hard-coded embedded syntax into a function.