Moves NSError+Factory to separate file.