Prefer use statements over absolute namespaces
Refactor duplicated lines into helper function
Document operation info regexes