Factor port of Bend language features
