Move Dom Observer to dedicated file