Fix duplicate symbols issue caused by non-extern const declared in a header: change it to a class method in a category on UIView