Refactored lots in factoidcommand: extracted methods and used an "early return" approach

Removed unused code from factoid.java

Changed stream().map(x -> x) to not use the map() method since it's not needed at all.

Changed really convoluted code of the sort:

Set<blah> blah;
Arrays.stream(blah.toArray()).collect()

to just use blah.collect()