Previously, we did the check too late resulting in the traefik.port label not being effective. The change comes with additional refactorings in production and tests.