remove preloads functions, adding to middleware instead

Passed in 1m 18s
:pipeline:
:pipeline:buildkite-agent pipeline upload
Waited 2s
Ran in 10s
:golangci-lint: lint :lint-roller:
Waited 1s
Ran in 28s
:golang: go test
Waited 2s
Ran in 11s
:github: upload PR reports
Waited 8s
Ran in 47s
Total Job Run Time: 1m 36s