Not sure why github doesn't say this file is deleted.  I gather you moved all this to the card_controller, pretty much without change.  That seems like a good thing.