[mass] Replaced widely used macros via regexps
Chapter 1 (25%)