Move attach media timeout logic from plugins into CardComposer