Move code from LdapApplication upstream
from fd#6124
Inside this code we find the function removeFinalSlash that is generic should we should move it to FusionDirectory\Cli\Application so it can be used by all tools
Inside this code we find the protected function verbose (): bool that should also go to FusionDirectory\Cli\Application