Revert "Include function copied from label to allow embeds"

This reverts commit 5dac6b134ab8aa1aee1d2ae19e6191cd66387a75.