moved context-requiring helper functions from likely_expression to Builder