Small refactorings of loops in fcrepo-kernel and moving literal strings into constants