Yes, that is correct behaviour in this situation because it’s inside a function which makes it a runtime dependency.