Use a helper function to reduce code size; omit FILE/LINE when we have