[#6337] Return variation meta if it exists

includes some code standards cleanup.

closes #6337