the third time probably comes from the implicit `main` that gets put in as the default section (https://github.com/puppetlabs/puppet/pull/2158/files#diff-d7b860eeb40f69f2212af7a47f67545bR13). `sections` should be returning a unique list.