You're right, this is not best practice ;-)