Moved the origins checking callback outside the origins getter/setter function.