Migrating from v4.7 to v5.0

Migrating from v4.7 to v5.0

For migration to v5 see this blogpost.