Remove more duplication from API application controller
Remove more duplication from API application controller

librariesio/libraries.io,librariesio/libraries.io,librariesio/libraries.io,librariesio/libraries.io