Cleaned up duplication in MainActivity.onCreate