Revert "fix(gatsby): minor refactor of console functions" (#17838)
Revert "fix(gatsby): minor refactor of console functions" (#17838)

This reverts commit 7775b3e4c7d66e2f8cce8c3c1ef2bc79083da585.
gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby