CSPACE-6273: Update custom function to use alternatives mechanism as one option.