hdc_policy refactoring

Shortened the main `get_da()` method by moving code from the individual `elif`s into smaller methods. Added more comments.