Clean up code in video embed module