Turned doc sections into constants where possible (#1606)