Factor out runtime namespace functions