Adjust dependency on custom_element_apigen and core_elements