Remove promise anti-pattern