I would suggest a more parsimonious pattern here.
Create a name `out` for example and assign `self`, `stcs` or `stcs` to it.
then only return `out`. Will read less cluttered.