Extract methods in GitolitePublicKey controller