Cleanup; got rid of useless api endpoint requirement in constructor.