Factor authorize_push! and authorize_code_access!

with existing method_missing. Pattern already used extensively,
so let's be consistent and use it everywhere.
Merge pull request #8030 from cirosantilli/factor-authorize

Factor authorize_push! and authorize_code_access!