Hide an unnecessary function from public API
Make some regex patterns static