Pulled common Framework (re-)registration validation into a helper method.

Review: https://reviews.apache.org/r/22162