I am not a fan of this type of snowflake code... but I have no idea of how to do it better.