you are right, but the code is not using a constant, it is using a variable ($factory), so there's no way of this to happen.