Refine SP Ruby post-handlers