[cs] refactor duplication of @:noCompletion metadata generation