Convert Bank class to a trait