Introduce get_output() for EDD_API and refactor methods to use it. #1083