frameworks: Move privacy guard definitions to correct place