Refactoring of Swagger 2.0 translator