Clean up the LearnRails.analyze method a bit