Refactor shared css