Remove duplicated methods

I made a re factory from some duplicated methods. I tested creating the report in test, but please check it after merging.