FEAT: add applies function to replace epd_repo.applies.

The function is clumsy, but needed to avoid depending on epd_repo in workbench2.