Reduce duplication in projects controller
Reduce duplication in projects controller

abrophy/libraries.io,abrophy/libraries.io,tomnatt/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,librariesio/libraries.io,tomnatt/libraries.io,librariesio/libraries.io,abrophy/libraries.io,librariesio/libraries.io