Remove unnecessary type inference