Factor error and success methods from services.