Clean up code in ebog author portrait module