Factored out data url and inlined a method