Factored out parent resource helper into module.