When your test automation code is larger than the app/unit test codebase I think you have done the test pyramid fundamentally wrong.