Simplify Util.componentToJSON