Remove magic numbers.

Starting to fix the registration process.