Refactor embedding strategies to be able to extend easier
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3462183. -->
Reported by: [scott_euser](https://www.drupal.org/user/3267594)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The embedding strategies have one or two giant methods only, making them hard to extend with small changes<br>
The strategies also duplicate a lot of shared code</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Look at the strategies</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Refactor</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Completed and merged in ai-search</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>N/A</p>
<h3 id="summary-api-changes">API changes</h3>
<p>N/A</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>N/A</p>
issue