Split coinbase code off into backend object